.class public Lcom/netease/netstat/utils/Sendserver;
.super Ljava/lang/Object;
.source "Sendserver.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 10
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public sendException(Ljava/lang/String;)V
    .locals 0
    .parameter "exception"

    .prologue
    .line 46
    return-void
.end method

.method public sendList()V
    .locals 8

    .prologue
    .line 17
    const/4 v2, 0x0

    .line 18
    .local v2, i:I
    :try_start_0
    new-instance v5, Ljava/text/SimpleDateFormat;

    .line 19
    const-string v6, "yyyy:MM:dd-HH:mm:ss"

    .line 18
    invoke-direct {v5, v6}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 20
    .local v5, sDateFormat:Ljava/text/SimpleDateFormat;
    new-instance v6, Ljava/util/Date;

    invoke-direct {v6}, Ljava/util/Date;-><init>()V

    invoke-virtual {v5, v6}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 22
    .local v0, date:Ljava/lang/String;
    invoke-static {v0}, Lcom/netease/netstat/utils/Contanst;->setTime(Ljava/lang/String;)V

    .line 24
    const-string v6, "Reader"

    invoke-static {v6}, Lcom/netease/netstat/utils/Contanst;->setBrand(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move v3, v2

    .line 25
    .end local v2           #i:I
    .local v3, i:I
    :goto_0
    :try_start_1
    sget-object v6, Lcom/netease/netstat/utils/Contanst;->obj:Lorg/json/JSONObject;

    invoke-virtual {v6}, Lorg/json/JSONObject;->length()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    move-result v6

    const/16 v7, 0x11

    if-ge v6, v7, :cond_1

    add-int/lit8 v2, v3, 0x1

    .end local v3           #i:I
    .restart local v2       #i:I
    const/16 v6, 0x14

    if-lt v3, v6, :cond_0

    .line 32
    :goto_1
    :try_start_2
    sget-object v6, Lcom/netease/netstat/utils/Contanst;->obj:Lorg/json/JSONObject;

    invoke-virtual {v6}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/netease/mobistat/util/Constant;->setStatinfo(Ljava/lang/String;)V

    .line 36
    new-instance v4, Lcom/netease/mobistat/client/clients/StatClient;

    invoke-direct {v4}, Lcom/netease/mobistat/client/clients/StatClient;-><init>()V

    .line 37
    .local v4, sClient:Lcom/netease/mobistat/client/clients/StatClient;
    invoke-virtual {v4}, Lcom/netease/mobistat/client/clients/StatClient;->run()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 41
    .end local v0           #date:Ljava/lang/String;
    .end local v4           #sClient:Lcom/netease/mobistat/client/clients/StatClient;
    .end local v5           #sDateFormat:Ljava/text/SimpleDateFormat;
    :goto_2
    return-void

    .line 27
    .restart local v0       #date:Ljava/lang/String;
    .restart local v5       #sDateFormat:Ljava/text/SimpleDateFormat;
    :cond_0
    const-wide/16 v6, 0x3e8

    :try_start_3
    invoke-static {v6, v7}, Ljava/lang/Thread;->sleep(J)V
    :try_end_3
    .catch Ljava/lang/InterruptedException; {:try_start_3 .. :try_end_3} :catch_0
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    move v3, v2

    .end local v2           #i:I
    .restart local v3       #i:I
    goto :goto_0

    .line 28
    .end local v3           #i:I
    .restart local v2       #i:I
    :catch_0
    move-exception v1

    .line 29
    .local v1, e:Ljava/lang/InterruptedException;
    :try_start_4
    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    move v3, v2

    .end local v2           #i:I
    .restart local v3       #i:I
    goto :goto_0

    .line 38
    .end local v0           #date:Ljava/lang/String;
    .end local v1           #e:Ljava/lang/InterruptedException;
    .end local v3           #i:I
    .end local v5           #sDateFormat:Ljava/text/SimpleDateFormat;
    .restart local v2       #i:I
    :catch_1
    move-exception v1

    .line 39
    .local v1, e:Ljava/lang/Exception;
    :goto_3
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_2

    .line 38
    .end local v1           #e:Ljava/lang/Exception;
    .end local v2           #i:I
    .restart local v0       #date:Ljava/lang/String;
    .restart local v3       #i:I
    .restart local v5       #sDateFormat:Ljava/text/SimpleDateFormat;
    :catch_2
    move-exception v1

    move v2, v3

    .end local v3           #i:I
    .restart local v2       #i:I
    goto :goto_3

    .end local v2           #i:I
    .restart local v3       #i:I
    :cond_1
    move v2, v3

    .end local v3           #i:I
    .restart local v2       #i:I
    goto :goto_1
.end method
